package a.j;

import a.c.e;
import a.c.q;
import a.c.w;
import a.c.z;

import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;

public class qc
  implements TreeModel
{
  private q a;
  private Object c = "ROOT";
  private z e;
  public static boolean f;
  
  public qc(q paramq)
  {
    this.a = paramq;
    this.e = new z();
  }
  
  public Object getChild(Object paramObject, int paramInt)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (paramObject == this.c)
    {
      w localw = this.a.v();
      int i = 0;
      do
      {
        while (!bool1)
        {
          if (i >= paramInt) {
            break;
          }
          if (bool1) {
            break label60;
          }
          localw.f();
          i++;
        }
      } while (bool2);
      label60:
      return localw.d();
    }
    return null;
  }
  
  public int getChildCount(Object paramObject)
  {
    if (paramObject == this.c) {
      return this.a.k();
    }
    return 0;
  }
  
  public int getIndexOfChild(Object paramObject1, Object paramObject2)
  {
    if ((ld.E) || (paramObject1 == this.c)) {
      return ((e)paramObject2).f();
    }
    return 0;
  }
  
  public Object getRoot()
  {
    return this.c;
  }
  
  public boolean isLeaf(Object paramObject)
  {
    return paramObject != this.c;
  }
  
  public void addTreeModelListener(TreeModelListener paramTreeModelListener)
  {
    this.e.b(paramTreeModelListener);
  }
  
  public void removeTreeModelListener(TreeModelListener paramTreeModelListener)
  {
    this.e.remove(paramTreeModelListener);
  }
  
  public void valueForPathChanged(TreePath paramTreePath, Object paramObject) {}
  
  public void a()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if ((bool2) || (!this.e.isEmpty()))
    {
      TreeModelListener[] arrayOfTreeModelListener = new TreeModelListener[this.e.size()];
      this.e.toArray(arrayOfTreeModelListener);
      int i = 0;
      do
      {
        if (i >= arrayOfTreeModelListener.length) {
          break;
        }
        arrayOfTreeModelListener[i].treeStructureChanged(new TreeModelEvent(this.c, new TreePath(this.c)));
        i++;
      } while (!bool1);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.qc

 * JD-Core Version:    0.7.0.1

 */